home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINPROGS
/
ATT302.ZIP
/
ATOMIC.FRM
< prev
next >
Wrap
Text File
|
1993-08-28
|
18KB
|
554 lines
VERSION 2.00
Begin Form Atomic
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "Call the Atomic Clock"
ClientHeight = 3975
ClientLeft = 2475
ClientTop = 945
ClientWidth = 4695
ClipControls = 0 'False
Height = 4410
Left = 2400
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3975
ScaleWidth = 4695
Top = 585
Width = 4845
Begin MSComm Comm1
InBufferSize = 2048
Interval = 1000
Left = 3390
NullDiscard = -1 'True
OutBufferSize = 2048
RTSEnable = -1 'True
Top = 1125
End
Begin SSCheck DST
Caption = "Use Daylight Savings Time"
Height = 285
Left = 225
TabIndex = 4
Top = 960
Width = 2640
End
Begin ComboBox TimeZone
BackColor = &H00FFFFFF&
Height = 300
Left = 375
Style = 2 'Dropdown List
TabIndex = 3
Top = 450
Width = 4065
End
Begin CommandButton Command1
Cancel = -1 'True
Caption = "Cancel"
Height = 345
Index = 2
Left = 2370
TabIndex = 1
Top = 3300
Width = 2085
End
Begin CommandButton Command1
Caption = "Dial"
Default = -1 'True
Height = 345
Index = 1
Left = 2370
TabIndex = 0
Top = 2790
Width = 2070
End
Begin CommandButton Command1
Caption = "Reset Defaults"
Height = 345
Index = 0
Left = 2370
TabIndex = 12
Top = 2280
Width = 2070
End
Begin SSFrame Frame3D1
Caption = "COM Port"
ForeColor = &H00000000&
Height = 1530
Left = 255
TabIndex = 7
Top = 2190
Width = 1965
Begin SSOption ComPort
Caption = "COM&4:"
ForeColor = &H00000000&
Height = 240
Index = 3
Left = 135
TabIndex = 11
Top = 1185
Width = 780
End
Begin SSOption ComPort
Caption = "COM&3:"
ForeColor = &H00000000&
Height = 240
Index = 2
Left = 135
TabIndex = 10
Top = 885
Width = 780
End
Begin SSOption ComPort
Caption = "COM&2:"
ForeColor = &H00000000&
Height = 240
Index = 1
Left = 135
TabIndex = 9
Top = 585
Width = 780
End
Begin SSOption ComPort
Caption = "COM&1:"
ForeColor = &H00000000&
Height = 240
Index = 0
Left = 135
TabIndex = 8
Top = 285
Width = 780
End
End
Begin TextBox DialString
Height = 300
Left = 375
TabIndex = 6
Text = "ATDT 1 303 494-4774"
Top = 1710
Width = 4080
End
Begin Label Status
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Height = 240
Left = 1125
TabIndex = 13
Top = 15
Width = 3300
End
Begin Label Label1
BackStyle = 0 'Transparent
Caption = "Modem Dial String"
Height = 210
Index = 1
Left = 225
TabIndex = 5
Top = 1440
Width = 2145
End
Begin Label Label1
BackStyle = 0 'Transparent
Caption = "Time Zone"
Height = 240
Index = 0
Left = 195
TabIndex = 2
Top = 165
Width = 1320
End
End
Option Explicit
Dim ControlsDisabled As Integer
Dim InString As String
Dim TString As String
Dim Aborted As Integer
'
'DESCRIPTION OF THE
'AUTOMATED COMPUTER TELEPHONE SERVICE (ACTS)
'
'
'The following is transmitted (at 1200 Baud) after completion of the
'telephone connection.
'
'? = HELP
'National Institute of Standards and Technology
'Telephone Time Service
'
'D L D
'MJD YR MO DA H M S ST S UT1 msADV <OTM>
'47999 90-04-18 21:39:15 50 0 +.1 045.0 UTC(NIST) *
'47999 90-04-18 21:39:16 50 0 +.1 045.0 UTC(NIST) *
'47999 90-04-18 21:39:17 50 0 +.1 045.0 UTC(NIST) *
'47999 90-04-18 21:39:18 50 0 +.1 045.0 UTC(NIST) *
'47999 90-04-18 21:39:19 50 0 +.1 037.6 UTC(NIST) #
'47999 90-04-18 21:39:20 50 0 +.1 037.6 UTC(NIST) #
'etc..etc...etc.......
'
'UTC = Universal Time Coordinated, the official world time referred to the
'zero meridian.
'_________________________________________________________________________
'
'DST = Daylight savings time characters, valid for the continental U.S., are
'set as follows:
'00 = We are on standard time (ST). 50 = We are on DST.
'99 to 51 = Now on ST, go to DST when your local time is 2:00 am and the
'count is 51. The count is decremented daily at 00 (UTC).
'49 to 01 = Now on DST, go to ST when your local time is 2:00 am and the
'count is 01. The count is decremented daily at 00 (UTC).
'The two DST characters provide up to 48 days advance notice of a change in
'time. The count remains at 00 or 50 at other times.
'_________________________________________________________________________
'
'LS = Leap second flag is set to "1" to indicate that a leap second is to be
'added as 23:59:60 (UTC) on the last day of the current UTC month. The LS
'flag will be reset to "0" starting with 23:59:60 (UTC). The flag will
'remain on for the entire month before the second is added. Leap seconds
'are added as needed at the end of any month. Usually June and/or December
'are chosen.
'
'__________________________________________________________________________
''
'DUT1 = Approximate difference between earth rotation time (UT1) and UTC, in
'steps of 0.1 second. DUT1 = UT1 - UTC
'___________________________________________________________________________
''
'MJD = Modified Julian Date, often used to tag certain scientific data.
'___________________________________________________________________________
''
'The full time format is sent at 1200 Baud, 8 bit, 1 stop, no parity.
'The format at 300 Baud is also 8 bit, 1 stop, no parity.
'At 300 Baud the MJD and DUT1 values are deleted and the
'time is transmitted only on even seconds.
'___________________________________________________________________________
''
'Maximum on line time will be 56 seconds. If all lines are busy at any time,
'the oldest call will be terminated if it has been on line more than 28
'seconds, else, the call that first reaches 28 seconds will be terminated.
'____________________________________________